package com.eulog.gwt.euloggwtlibrary.user.client.ui.impl;


public class EulogImageAllTypeImplIE6 extends EulogImageAllTypeImpl {

	public boolean isEulogImageLoadListenerSetOriginalSizeAfterLoading(String url) {
		if(isPng(url)) return true;
		return false;
	}
	
	public boolean isPng(String url) {
    	if (url.toLowerCase().endsWith(".png")) return true;
    	return false;
    }

	/*
    public Element createElement (String url) {
    	if (isPng(url)) {
	    	
	    	Element element = createElement(url, 0,0);
	    	return element;
    	}
    	
    	return super.createElement(url);
    }
    
    public Element createElement (String url, int width, int height)
    {
        if (isPng(url)) {
        	Image img = new Image(url);
            img.setPixelSize(width, height);
            return img.getElement();
        }
            
        return super.createElement(url, width, height);
    }
    */

    
}